package com.longxi.tianjintianbao.ui.activity.contact;

import android.support.v7.widget.RecyclerView;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.complaint.ComplaintDetailAtPresenter;
import com.longxi.tianjintianbao.ui.presenter.contact.ContactSearchAtPresenter;
import com.longxi.tianjintianbao.ui.view.complaint.IComplaintDetailAtView;
import com.longxi.tianjintianbao.ui.view.contact.IContactSearchAtView;
import com.longxi.tianjintianbao.widget.SearchView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import butterknife.BindView;

/**
 * Created by 70339 on 2018/5/3.
 * 代码无八阿哥
 * 阿弥陀佛
 */
public class ContactSearchActivity extends BaseActivity<IContactSearchAtView, ContactSearchAtPresenter> implements IContactSearchAtView {

    @BindView(R.id.searchView)
    SearchView mSearchView;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_contact_search;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
        mPresenter.initAdapter();
        mPresenter.noSearch();
    }

    @Override
    public void initListener() {
        super.initListener();
    }

    @Override
    protected ContactSearchAtPresenter createPresenter() {
        return new ContactSearchAtPresenter(this);
    }

    @Override
    public SearchView getSearchView() {
        return mSearchView;
    }

    @Override
    public SmartRefreshLayout getRefreshLayout() {
        return mRefreshLayout;
    }

    @Override
    public RecyclerView getRvContent() {
        return mRvContent;
    }
}
